var router = require('koa-router')();
/*引入子集路由*/
var activities = require('./component/activities.js');
var wxOauth2 = require('./component/wxOauth2.js');
var tb_tbk = require('./component/tb_tbk.js');

/*路由附属-主路径*/
router.prefix('/main/v1');

/*微信认证流程*/
router.use('/wxOauth2', wxOauth2.routes(), wxOauth2.allowedMethods());
/*微信活动报名*/
router.use('/activities', activities.routes(), activities.allowedMethods());
/*淘宝-淘宝客api*/
router.use('/tb_tbk', tb_tbk.routes(), tb_tbk.allowedMethods());

module.exports = router;
